<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>反馈管理 - 加强附魔金苹果模组</title>
    
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #ffffff;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
            min-height: 100vh;
        }

        .admin-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .admin-header {
            text-align: center;
            margin-bottom: 50px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            position: relative;
            overflow: hidden;
        }

        .admin-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #4ade80, #06b6d4, #8b5cf6);
            border-radius: 24px 24px 0 0;
        }

        .admin-header h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #4ade80, #06b6d4, #8b5cf6);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 3s ease-in-out infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .admin-header p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 30px;
        }

        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            text-align: center;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(74, 222, 128, 0.3);
        }

        .stat-card .stat-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #4ade80, #06b6d4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-card .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 5px;
        }

        .stat-card .stat-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        .filters-container {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            margin-bottom: 30px;
        }

        .filters-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .filter-group label {
            font-weight: 500;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .filter-group select,
        .filter-group input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 10px 12px;
            color: #fff;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .filter-group select:focus,
        .filter-group input:focus {
            outline: none;
            border-color: #4ade80;
            box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
        }

        .filter-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #4ade80, #06b6d4);
            color: white;
            box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(74, 222, 128, 0.4);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .feedback-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feedback-item {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .feedback-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border-color: rgba(74, 222, 128, 0.3);
        }

        .feedback-header {
            padding: 25px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .feedback-header:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .feedback-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .feedback-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #fff;
            margin: 0;
        }

        .feedback-meta {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
        }

        .meta-item i {
            color: #4ade80;
        }

        .feedback-type {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .type-bug { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
        .type-feature { background: rgba(34, 197, 94, 0.2); color: #86efac; }
        .type-compatibility { background: rgba(251, 191, 36, 0.2); color: #fde047; }
        .type-other { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }

        .feedback-toggle {
            color: #4ade80;
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .feedback-item.active .feedback-toggle {
            transform: rotate(180deg);
        }

        .feedback-content {
            display: none;
            padding: 0 30px 30px 30px;
        }

        .feedback-item.active .feedback-content {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 25px;
        }

        .content-section {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .section-title {
            font-weight: 600;
            color: #4ade80;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-content {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            white-space: pre-wrap;
        }

        .feedback-actions {
            display: flex;
            gap: 15px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 0.8rem;
            border-radius: 20px;
        }

        .btn-danger {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
        }

        .btn-danger:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
        }

        .no-feedback {
            text-align: center;
            padding: 60px 30px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .no-feedback i {
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.3);
            margin-bottom: 20px;
        }

        .no-feedback h3 {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 10px;
        }

        .no-feedback p {
            color: rgba(255, 255, 255, 0.5);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .admin-container {
                padding: 20px 15px;
            }

            .admin-header h1 {
                font-size: 2rem;
            }

            .content-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .filters-grid {
                grid-template-columns: 1fr;
            }

            .feedback-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .feedback-actions {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
    <div class="admin-container">
        <!-- 头部 -->
        <div class="admin-header">
            <h1><i class="fas fa-shield-alt"></i> 反馈管理中心</h1>
            <p>查看和管理用户提交的所有反馈信息</p>
            
            <!-- 统计数据 -->
            <div class="stats-container">
                <div class="stat-card">
                    <div class="stat-icon"><i class="fas fa-comments"></i></div>
                    <div class="stat-number" id="totalFeedbacks">0</div>
                    <div class="stat-label">总反馈数</div>
                </div>
                <div class="stat-card">
                    <div class="stat-icon"><i class="fas fa-bug"></i></div>
                    <div class="stat-number" id="bugReports">0</div>
                    <div class="stat-label">Bug报告</div>
                </div>
                <div class="stat-card">
                    <div class="stat-icon"><i class="fas fa-lightbulb"></i></div>
                    <div class="stat-number" id="featureRequests">0</div>
                    <div class="stat-label">功能建议</div>
                </div>
                <div class="stat-card">
                    <div class="stat-icon"><i class="fas fa-clock"></i></div>
                    <div class="stat-number" id="todayFeedbacks">0</div>
                    <div class="stat-label">今日新增</div>
                </div>
            </div>
        </div>

        <!-- 筛选器 -->
        <div class="filters-container">
            <div class="filters-title">
                <i class="fas fa-filter"></i>
                筛选和搜索
            </div>
            <div class="filters-grid">
                <div class="filter-group">
                    <label>问题类型</label>
                    <select id="typeFilter">
                        <option value="all">全部类型</option>
                        <option value="bug">Bug报告</option>
                        <option value="feature">功能建议</option>
                        <option value="compatibility">兼容性问题</option>
                        <option value="other">其他问题</option>
                    </select>
                </div>
                <div class="filter-group">
                    <label>时间范围</label>
                    <select id="dateFilter">
                        <option value="all">全部时间</option>
                        <option value="today">今天</option>
                        <option value="week">本周</option>
                        <option value="month">本月</option>
                    </select>
                </div>
                <div class="filter-group">
                    <label>模组版本</label>
                    <select id="versionFilter">
                        <option value="all">全部版本</option>
                        <option value="v1.1.0">v1.1.0</option>
                        <option value="v1.0.0">v1.0.0</option>
                    </select>
                </div>
                <div class="filter-group">
                    <label>搜索关键词</label>
                    <input type="text" id="searchInput" placeholder="搜索标题或内容...">
                </div>
            </div>
            <div class="filter-actions">
                <button class="btn btn-primary" onclick="applyFilters()">
                    <i class="fas fa-search"></i>
                    应用筛选
                </button>
                <button class="btn btn-secondary" onclick="clearFilters()">
                    <i class="fas fa-times"></i>
                    清除筛选
                </button>
                <button class="btn btn-secondary" onclick="exportFeedbacks()">
                    <i class="fas fa-download"></i>
                    导出数据
                </button>
                <button class="btn btn-danger" onclick="clearAllFeedbacks()">
                    <i class="fas fa-trash"></i>
                    清空所有
                </button>
            </div>
        </div>

        <!-- 反馈列表 -->
        <div id="feedbackList" class="feedback-list">
            <!-- 反馈项目将通过JavaScript动态生成 -->
        </div>
    </div>

    <script src="js/admin-feedback.js"></script>
</body>
</html>